var fs = require('fs'),
  url = require('url');

exports.goIndex = goIndex;

function goIndex(res, req) {
  var readPath = __dirname+'/../templates/' + url.parse('index.html').pathname;
  var indexPage = fs.readFileSync(readPath);
  console.log(indexPage.toString());
  res.end(indexPage);
}
